package com.blb.community_admin.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blb.community_admin.entity.SysDictData;
import com.blb.community_admin.mapper.SysDictDataMapper;
import com.blb.community_admin.service.ISysDictDataService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author hkp
 */
@Service
public class SysDictDataServiceImpl extends ServiceImpl<SysDictDataMapper, SysDictData> implements ISysDictDataService {

    @Resource
    private SysDictDataMapper sysDictDataMapper;

    @Override
    public IPage<SysDictData> selectDictDataPage(Integer current, Integer size, String dictType) {
        return sysDictDataMapper.selectDictPage(new Page<>(current, size), dictType);
    }

    @Override
    public IPage<SysDictData> selectDictPageByFuzzy(Integer current, Integer size, String dictName, String dictLabel, String status) {
        return sysDictDataMapper.selectDictPageByFuzzy(new Page<>(current, size), dictName, dictLabel, status);
    }

}
